package com.example.demo;

import java.util.Calendar;

public class TestCalendar {

    public static void main(String[] args) {
        Calendar am_begin = Calendar.getInstance();
        am_begin.set(Calendar.HOUR_OF_DAY,6);
        am_begin.set(Calendar.MINUTE,0);
        System.out.println(am_begin.getTime());
        Calendar am_end = Calendar.getInstance();
        am_end.set(Calendar.HOUR_OF_DAY,12);
        am_end.set(Calendar.MINUTE,30);
        System.out.println(am_end.getTime());
        Calendar bm_begin = Calendar.getInstance();
        bm_begin.set(Calendar.HOUR_OF_DAY,13);
        bm_begin.set(Calendar.MINUTE,30);
        System.out.println(bm_begin.getTime());
        Calendar bm_end = Calendar.getInstance();
        bm_end.set(Calendar.HOUR_OF_DAY,18);
        bm_end.set(Calendar.MINUTE,30);
        System.out.println(bm_end.getTime());
    }
}
